<template>
	<view>
		<view class="xunjian_toute" @tap="choiceRoute(1)">
			<image src="../../static/icon/icon2.png" mode=""></image>
			<text>分配路线</text>
		</view>
		<view class="xunjian_toute" @tap="choiceRoute(2)">
			<image src="../../static/icon/icon3.png" mode=""></image>
			<text>报警巡检</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			choiceRoute(e) {
				switch (e) {
					case 1:
						uni.navigateTo({
							url: '../route_list/route_list'
						})
						break;
					case 2:
						uni.navigateTo({
							url: '../escalation/escalation'
						})
						break;

				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.xunjian_toute {
		height: 180rpx;
		background: #4053CD;
		border-radius: 20rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 30rpx;

		image {
			width: 44rpx;
			height: 44rpx;
			margin-right: 20rpx;
		}

		text {
			font-size: 32rpx;
			font-family: PingFangSC-Medium, PingFang SC;
			font-weight: 500;
			color: #FFFFFF;
			line-height: 44rpx;
		}
	}
</style>
